﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cnFederal.Fa_Forms
{
    public partial class Contents : System.Web.UI.Page
    {
      
         public Contents()
        {             
          
        }
         protected void Page_Load(object sender, EventArgs e)
         {

             CnfImages.Load();
             FaPosts.Load();
             Nations.Load("Farsi");
             listview1.DataSource = FaPosts.GetArticlesFromDateToDate();
             listview1.DataBind();

         }

         public string GetShortDate(string datetime)
         {
             return Convert.ToDateTime(datetime).ToShortDateString();
         }
         protected void pager_click(object sender, EventArgs e)
         {
             int lastpage = this.DataPager1.StartRowIndex;
             DataPager1.SetPageProperties(lastpage, DataPager1.MaximumRows, false);

             listview1.DataBind();

         }

      
    }
}